package com.demo.demo.bean;

public class QueryInfo {
    private String query;
    private int pageNum = 1;
    private int pageSize = 1;
    private String product;
    private String location;
    private String sortBy;
    private String order;
    private int pageStart;
    private String varietyType;
    public QueryInfo() {
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public QueryInfo(String query, int pageNum, int pageSize) {
        this.query = query;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getVarietyType() {
        return varietyType;
    }

    public void setVarietyType(String varietyType) {
        this.varietyType = varietyType;
    }

    public String getQuery() {
        return query;
    }

    public int getPageNum() {
        return pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "QueryInfo{" +
                "query='" + query + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", product='" + product + '\'' +
                ", sortBy='" + sortBy + '\'' +
                ", order='" + order + '\'' +
                ", varietyType='" + varietyType + '\'' +
                '}';
    }

    public void setPageStart(int pageStart) {
        this.pageStart = pageStart;
    }

    public int getPageStart() {
        return pageStart;
    }
}
